package com.nuanshui.heatedloan.configBehavior;
import com.nuanshui.framework.behavior.BehaviorContext;
import com.nuanshui.framework.behavior.IBehaviorInvoker;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by zxh on 2016/11/19.
 */
@Repository
public class ConfigBehavior implements IBehaviorInvoker {

    public BehaviorContext getContext() {
        return BehaviorContext.getContext();
    }

    public String getScreenSize() {
        return (String) BehaviorContext.getContext().get("screenSize");
    }

    public Map<String, Object> getMap() {
        return (Map<String, Object>) BehaviorContext.getContext().get("map");
    }

    public void doInvoke()
    {
    }
}
